// 
//  Copyright (C) 2004-2009  Autodesk, Inc.
//  
//  This library is free software; you can redistribute it and/or
//  modify it under the terms of version 2.1 of the GNU Lesser
//  General Public License as published by the Free Software Foundation.
//  
//  This library is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
//  Lesser General Public License for more details.
//  
//  You should have received a copy of the GNU Lesser General Public
//  License along with this library; if not, write to the Free Software
//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

#ifndef MAPINFO_PROVIDER_H
#define MAPINFO_PROVIDER_H

#define MAPINFO_PROVIDER_NAME                       L"OSGeo.MapInfo.3.5"
#define MAPINFO_PROVIDER_DEFAULT_DISPLAY_NAME       "OSGeo FDO Provider for MapInfo .TAB and .MIF/.MID"
#define MAPINFO_PROVIDER_DEFAULT_DESCRIPTION        "Read/write access to MapInfo .TAB and .MIF/.MID files."
#define MAPINFO_PROVIDER_VERSION                    L"3.5.0.0"
#define MAPINFO_FDO_VERSION                         L"3.5.0.0"

#define CONNECTIONPROPERTY_DEFAULT_FILE_LOCATION    L"DefaultFileLocation"
#define CREATEDATASTOREPROPERTY_FORMAT              L"Format"
#define EMPTY_VALUE                                 L""

#define DEFAULT_GEOMETRY_PROPERTY_NAME              L"GEOMETRY"
#define DEFAULT_FEATURE_ID_PROPERTY_NAME            L"FID"

#define TAB_SCHEMA_NAME                             L"TAB"
#define MIF_SCHEMA_NAME                             L"MIF"
#define VIEW_SCHEMA_NAME                            L"VIEW"
#define SEAMLESS_SCHEMA_NAME                        L"SEAMLESS"

// File extensions:
const wchar_t MAP_EXTENSION[5] = L".map";
const wchar_t ID_EXTENSION[5] = L".id";
const wchar_t DAT_EXTENSION[5] = L".dat";
const wchar_t TAB_EXTENSION[5] = L".tab";
const wchar_t MIF_EXTENSION[5] = L".mif";
const wchar_t MID_EXTENSION[5] = L".mid";
const wchar_t IND_EXTENSION[5] = L".ind";

// Spatial context constants:
const wchar_t SPATIALCONTEXT_DEFAULT_NAME[18] = L"Default";
const wchar_t SPATIALCONTEXT_CSYS_DEFAULT_NAME[4] = L"";
const wchar_t SPATIALCONTEXT_CSYS_DEFAULT_WKT[4] = L"";

const double SPATIALCONTEXT_DEFAULT_XY_TOLERANCE = 0.001;
const double SPATIALCONTEXT_DEFAULT_XY_TOLERANCE_LL = 0.0000001; 
const double  SPATIALCONTEXT_DEFAULT_Z_TOLERANCE = 0.001;
const double  SPATIALCONTEXT_DEFAULT_MINX = -10000000;
const double  SPATIALCONTEXT_DEFAULT_MINY = -10000000;
const double  SPATIALCONTEXT_DEFAULT_MAXX = 10000000;
const double  SPATIALCONTEXT_DEFAULT_MAXY = 10000000;

#endif //MAPINFO_PROVIDER_H
